package com.sdleyou.treepro.common.service;

import com.sdleyou.treepro.common.model.dao.Page;
import com.sdleyou.treepro.common.model.vo.AppointActiveVO;
import com.sdleyou.treepro.common.model.vo.AppointmentVO;

import java.util.List;

public interface AppointmentManager {

    /**
     * 获取可预约的活动列表
     *
     * @return
     */
    List<AppointActiveVO> getAppointmentActive(String baseId);

    /**
     * 预约一个植树活动
     *
     * @param userId
     * @param activeId
     */
    void makeAppointment(String userId, String activeId, String orderTime, String wellId);

    /**
     * 获取用户的预约记录
     *
     * @param userId
     * @return
     */
    Page<AppointmentVO> myAppointment(String userId, Integer pageSize, Integer pageNum);

    /**
     * 取消预约
     *
     * @param userId
     * @param appointmentId
     */
    void cancelAppointment(String userId, String appointmentId);
}
